package cn.smartgarden.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.smartgarden.model.Warnrecord;

@Repository
public interface WarnrecordDAO {
	int deleteByPrimaryKey(Integer id);

	int insert(Warnrecord record);

	int insertSelective(Warnrecord record);

	Warnrecord selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Warnrecord record);

	int updateByPrimaryKey(Warnrecord record);

	List<Warnrecord> getAll();

	List<Warnrecord> getByDate(@Param("datestart") String datestart, @Param("dateend") String dateend);

	List<Warnrecord> getByDateSbh(@Param("datestart") String datestart, @Param("dateend") String dateend,@Param("sbh") String sbh);

}